<?php

use Illuminate\Database\Seeder;

class VipBaseInfoSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        \App\Models\VipBaseInfo::insert([
            [
                'name' => '超级年度会员MAX',
                'price' => 399,
                'free_homework_help_count' => 50,
                'free_resource_point_count' => 300,
                'free_algorithm_sources_count' => 50,
                'algorithm_sources_icon' => 0,
                'resource_point' => 0,
                'homework_help_discount' => 1,
                'algorithm_sources_discount' => 1,
                'resource_discount' => 1,
                'is_exempt_ads' => \App\Models\VipBaseInfo::NOT_EXEMPT_ADS,
                'privilege_str' => '超级年度会员MAX:50次免D币作业帮+50个算法源码免D币+300个资源积分免积分下载+优惠好礼',
                'date_type' => \App\Models\VipBaseInfo::DATE_TYPE_YEAR,
                'date_length' => 1,
                'created_at' => date('Y-m-d H:i:s', time()),
                'updated_at' => date('Y-m-d H:i:s', time()),
            ],
            [
                'name' => '超级年度会员',
                'price' => 399,
                'free_homework_help_count' => 50,
                'free_resource_point_count' => 260,
                'free_algorithm_sources_count' => 60,
                'algorithm_sources_icon' => 0,
                'resource_point' => 0,
                'homework_help_discount' => 1,
                'algorithm_sources_discount' => 1,
                'resource_discount' => 1,
                'is_exempt_ads' => \App\Models\VipBaseInfo::IS_EXEMPT_ADS,
                'privilege_str' => '超级年度会员:全站免广告+50次免D币作业帮+60个算法源码免D币+260个资源积分免积分下载',
                'date_type' => \App\Models\VipBaseInfo::DATE_TYPE_YEAR,
                'date_length' => 1,
                'created_at' => date('Y-m-d H:i:s', time()),
                'updated_at' => date('Y-m-d H:i:s', time()),
            ],
            [
                'name' => 'VIP年卡',
                'price' => 239,
                'free_homework_help_count' => 10,
                'free_resource_point_count' => 200,
                'free_algorithm_sources_count' => 50,
                'algorithm_sources_icon' => 0,
                'resource_point' => 0,
                'homework_help_discount' => 1,
                'algorithm_sources_discount' => 1,
                'resource_discount' => 1,
                'is_exempt_ads' => \App\Models\VipBaseInfo::IS_EXEMPT_ADS,
                'privilege_str' => 'VIP年卡:全站免广告+10次免D币作业帮+50个算法源码免D币+200个资源积分免积分下载',
                'date_type' => \App\Models\VipBaseInfo::DATE_TYPE_YEAR,
                'date_length' => 1,
                'created_at' => date('Y-m-d H:i:s', time()),
                'updated_at' => date('Y-m-d H:i:s', time()),
            ],
            [
                'name' => '学识年卡',
                'price' => 199,
                'free_homework_help_count' => 30,
                'free_resource_point_count' => 200,
                'free_algorithm_sources_count' => 0,
                'algorithm_sources_icon' => 0,
                'resource_point' => 0,
                'homework_help_discount' => 1,
                'algorithm_sources_discount' => 1,
                'resource_discount' => 1,
                'is_exempt_ads' => \App\Models\VipBaseInfo::IS_EXEMPT_ADS,
                'privilege_str' => '学识年卡:全站免广告+30次免D币作业帮+200个资源积分免积分下载',
                'date_type' => \App\Models\VipBaseInfo::DATE_TYPE_YEAR,
                'date_length' => 1,
                'created_at' => date('Y-m-d H:i:s', time()),
                'updated_at' => date('Y-m-d H:i:s', time()),
            ],
            [
                'name' => 'VIP月卡',
                'price' => 89,
                'free_homework_help_count' => 0,
                'free_resource_point_count' => 50,
                'free_algorithm_sources_count' => 0,
                'algorithm_sources_icon' => 0,
                'resource_point' => 50,
                'homework_help_discount' => 0.9,
                'algorithm_sources_discount' => 0.9,
                'resource_discount' => 1,
                'is_exempt_ads' => \App\Models\VipBaseInfo::IS_EXEMPT_ADS,
                'privilege_str' => 'VIP月卡:全站免广告+算法源码9折+作业帮9折+50个资源积分免积分下载',
                'date_type' => \App\Models\VipBaseInfo::DATE_TYPE_MONEY,
                'date_length' => 1,
                'created_at' => date('Y-m-d H:i:s', time()),
                'updated_at' => date('Y-m-d H:i:s', time()),
            ],
            [
                'name' => '学识月卡',
                'price' => 79,
                'free_homework_help_count' => 0,
                'free_resource_point_count' => 50,
                'free_algorithm_sources_count' => 0,
                'algorithm_sources_icon' => 0,
                'resource_point' => 50,
                'homework_help_discount' => 0.9,
                'algorithm_sources_discount' => 1,
                'resource_discount' => 1,
                'is_exempt_ads' => \App\Models\VipBaseInfo::IS_EXEMPT_ADS,
                'privilege_str' => '学识月卡:全站免广告+作业帮9折+50个资源积分免积分下载',
                'date_type' => \App\Models\VipBaseInfo::DATE_TYPE_MONEY,
                'date_length' => 1,
                'created_at' => date('Y-m-d H:i:s', time()),
                'updated_at' => date('Y-m-d H:i:s', time()),
            ]
        ]);
    }
}
